

<div class="row-fluid">
    <div class="box paint color_11">
        <div class="title">
            <h4> <span><?php echo __('Users'); ?></span> </h4>
        </div>
        <!-- End .title -->
        <div class="content top">
            <table id="datatable" class="responsive table table-striped table-bordered" style="width:100%;margin-bottom:0; ">
                <thead>
                    <tr>
                        <th><?php echo $this->Paginator->sort('id'); ?></th>
                        <th><?php echo $this->Paginator->sort('username'); ?></th>
                        <th><?php echo $this->Paginator->sort('role'); ?></th>
                        <th><?php echo $this->Paginator->sort('created'); ?></th>
                        <th><?php echo $this->Paginator->sort('modified'); ?></th>
                        <th><?php echo $this->Paginator->sort('active'); ?></th>
                        <th class="actions"><?php echo __('Actions'); ?></th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach ($users as $user): ?>
                        <tr>
                            <td><?php echo h($user['User']['id']); ?>&nbsp;</td>
                            <td><?php echo h($user['User']['username']); ?>&nbsp;</td>
                            <td><?php echo h($this->Role->isRole($user['User']['role'])); ?>&nbsp;</td>
                            <td><?php echo h($user['User']['created']); ?>&nbsp;</td>
                            <td><?php echo h($user['User']['modified']); ?>&nbsp;</td>
                            <td><?php echo h($user['User']['active']); ?>&nbsp;</td>
                            <td class="ms">
                                <div class="btn-group1">
                                    <?php echo $this->Html->link("<i class=\"gicon-eye-open\"></i>", array('action' => 'view', $user['User']['id']), array('class' => 'btn btn-small', 'rel' => 'tooltip', 'data-placement' => 'left', 'data-original-title' => __('View'), 'escape' => false)); ?>
                                    <?php echo $this->Html->link("<i class=\"gicon-edit\"></i>", array('action' => 'edit', $user['User']['id']), array('class' => 'btn btn-small', 'rel' => 'tooltip', 'data-placement' => 'left', 'data-original-title' => __('Edit'), 'escape' => false)); ?>
                                    <?php if ($user['User']['active'] == 1): ?>
                                        <?php echo $this->Form->postLink("<i class=\"gicon-remove\"></i>", array('action' => 'delete', $user['User']['id']), array('class' => 'btn btn-small', 'rel' => 'tooltip', 'data-placement' => 'left', 'data-original-title' => __('Delete'), 'escape' => false), __('Are you sure you want to desactive # %s?', $user['User']['id'])); ?>
                                    <?php else: ?>
                                        <?php echo $this->Form->postLink("<i class=\"gicon-remove\"></i>", array('action' => 'active', $user['User']['id']), array('class' => 'btn btn-small', 'rel' => 'tooltip', 'data-placement' => 'left', 'data-original-title' => __('Delete'), 'escape' => false), __('Are you sure you want to active # %s?', $user['User']['id'])); ?>
                                    <?php endif; ?>
                                </div>
                            </td>
                        </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
            <div class="row-fluid control-group">
                <div class="span12">
                    <div class="pagination pull-right ">
                        <ul>
                            <?php
                            echo $this->Paginator->prev(__('previous'), array('tag' => 'li'), null, array('class' => 'previous paginate_button paginate_button_disabled', 'tag' => 'a'));
                            echo $this->Paginator->numbers(array('separator' => '', 'tag' => 'li', 'currentTag' => 'a class="paginate_active"', 'currentClass' => 'paginate_active'));
                            echo $this->Paginator->next(__('next'), array('tag' => 'li'), null, array('class' => 'next paginate_button paginate_button_disabled', 'tag' => 'a'));
                            ?>
                        </ul>
                    </div>
                </div>
            </div>


        </div>
        <!-- End .content --> 
    </div>
    <!-- End box --> 
</div>
<!-- End .row-fluid -->